package com.yiqi.news.mvp.ui.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.BaseViewHolder
import com.yiqi.huize.loadImage
import com.yiqi.news.R
import com.yiqi.news.entity.BankCardVO
import com.yiqi.news.entity.BankTypeVO
import kotlinx.android.synthetic.main.item_bank_type.view.*
import kotlinx.android.synthetic.main.item_label.view.*

class TypeAdapter : BaseQuickAdapter<BankTypeVO, BaseViewHolder>(R.layout.item_bank_type) {
    override fun convert(helper: BaseViewHolder, item: BankTypeVO) {
        val itemView = helper.itemView
        itemView.tv_type_name.text = item.bankName
        itemView.iv_type_logo.loadImage(item.bankImg)
    }

}
